﻿using com.iot.core.annotation;
using com.iot.core.data;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;

namespace com.iot.ht.Controllers.htfile.data
{
    [Schema(Name = "MongoHtFileDto", Description ="")]
    public class MongoHtFileDto : BaseDto
    {

         

        [Comment("原文件名")]
        [Schema(Name = "原文件名", Description = "")]
        [MaxLength(200)]
        public string Name { get; set; } = "";


        [Comment("备注")]
        [Schema(Name = "备注", Description = "")]
        [MaxLength(200)]
        public string Memo { get; set; } = "";


        [Comment("大小")]
        [Schema(Name = "大小", Description = "")]         
        public long Size { get; set; }  


        [Comment("数据")]
        [Schema(Name = "数据", Description = "")]
        public byte[] Data { get; set; }


        [Comment("Gid")]
        [Schema(Name = "Gid", Description = "")]         
        public Guid Gid { get; set; }


        [Comment("FileId")]
        [Schema(Name = "FileId", Description = "")]
        public string FileId { get; set; }

    }
}
